function PlayerColor( pn )
	if pn == PLAYER_1 then return color("0,1,0.7,1,1") end
	if pn == PLAYER_2 then return color("0.3,0.6,1,1") end
	return color("1,1,1,1")
end

if vCheck then
	Colors.Difficulty = {
		Beginner		= color("0,0.9,1,1"),
		Easy			= color("1,0.7,0.2,1"),
		Medium		= color("1,0.4,0.5,1"),
		Hard			= color("0.2,1,0.2,1"),
		Challenge		= color("0.5,0.4,1,1"),
		Edit			= color("0.8,0.8,0.8,1"),
		Difficulty_Beginner	= color("0,0.9,1,1"),
		Difficulty_Easy		= color("1,0.7,0.2,1"),
		Difficulty_Medium		= color("1,0.4,0.5,1"),
		Difficulty_Hard		= color("0.2,1,0.2,1"),
		Difficulty_Challenge	= color("0.5,0.4,1,1"),
		Difficulty_Edit		= color("0.8,0.8,0.8,1"),

		Couple		= color("#ed0972"),
		Routine		= color("#ff9a00"),
		Difficulty_Couple	= color("#ed0972"),
		Difficulty_Routine	= color("#ff9a00"),
	};
	Colors.Course = {
		Beginner		= color("0,0.9,1,1"),
		Easy			= color("1,0.7,0.2,1"),
		Medium		= color("1,0.4,0.5,1"),
		Hard			= color("0.2,1,0.2,1"),
		Challenge		= color("0.5,0.4,1,1"),
		Difficulty_Beginner	= color("0,0.9,1,1"),
		Difficulty_Easy		= color("1,0.7,0.2,1"),
		Difficulty_Medium		= color("1,0.4,0.5,1"),
		Difficulty_Hard		= color("0.2,1,0.2,1"),
		Difficulty_Challenge	= color("0.5,0.4,1,1"),

		Edit		= color("0.8,0.8,0.8,1"),
		Couple	= color("#ed0972"),
		Routine	= color("#ff9a00"),
	};
else
	Colors = {
		Difficulty = {
			Beginner	= color("0,0.9,1,1"),
			Easy		= color("1,0.7,0.2,1"),
			Medium	= color("1,0.4,0.5,1"),
			Hard		= color("0.2,1,0.2,1"),
			Challenge	= color("0.5,0.4,1,1"),
			Edit		= color("0.8,0.8,0.8,1"),
			Difficulty_Beginner	= color("0,0.9,1,1"),
			Difficulty_Easy		= color("1,0.7,0.2,1"),
			Difficulty_Medium		= color("1,0.4,0.5,1"),
			Difficulty_Hard		= color("0.2,1,0.2,1"),
			Difficulty_Challenge	= color("0.5,0.4,1,1"),
			Difficulty_Edit		= color("0.8,0.8,0.8,1"),

			Couple		= color("#ed0972"),
			Routine		= color("#ff9a00"),
			Difficulty_Couple	= color("#ed0972"),
			Difficulty_Routine	= color("#ff9a00"),
		};
		Course = {
			Beginner	= color("0,0.9,1,1"),
			Easy		= color("1,0.7,0.2,1"),
			Medium	= color("1,0.4,0.5,1"),
			Hard		= color("0.2,1,0.2,1"),
			Challenge	= color("0.5,0.4,1,1"),
			Difficulty_Beginner	= color("0,0.9,1,1"),
			Difficulty_Easy		= color("1,0.7,0.2,1"),
			Difficulty_Medium		= color("1,0.4,0.5,1"),
			Difficulty_Hard		= color("0.2,1,0.2,1"),
			Difficulty_Challenge	= color("0.5,0.4,1,1"),

			Edit		= color("0.8,0.8,0.8,1"),
			Couple	= color("#ed0972"),
			Routine	= color("#ff9a00"),
		};
		Judgment = {
			JudgmentLine_W1		= color("1,1,1,1"),
			JudgmentLine_W2		= color("1,0.8,0.2,1"),
			JudgmentLine_W3		= color("0,1,0.2,1"),
			JudgmentLine_W4		= color("#34bfff"),
			JudgmentLine_W5		= color("#e44dff"),
			JudgmentLine_Held	= color("#FFFFFF"),
			JudgmentLine_Miss	= color("#ff3c3c"),
			JudgmentLine_MaxCombo	= color("#ffc600")
		};
	};
	function CustomDifficultyToColor( sCustomDifficulty ) 
		return Colors.Difficulty[sCustomDifficulty];
	end
end;

	function CustomDifficultyToColor( sCustomDifficulty ) 
		return Colors.Difficulty[sCustomDifficulty]
	end

	function CustomDifficultyToDarkColor( sCustomDifficulty ) 
		local c = Colors.Difficulty[sCustomDifficulty]
		return { c[1]/2, c[2]/2, c[3]/2, c[4] }
	end

	function CustomDifficultyToLightColor( sCustomDifficulty ) 
		local c = Colors.Difficulty[sCustomDifficulty]
		return { scale(c[1],0,1,0.5,1), scale(c[2],0,1,0.5,1), scale(c[3],0,1,0.5,1), c[4] }
	end